package xiong.copy.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum  CodeBiEnum {
    ONE(1,""),
    TOW(2,"");
    private final Integer code;
    private final String description;

    public static CodeBiEnum find(Integer code){
        for (CodeBiEnum value: CodeBiEnum.values()) {
            if (code.equals(value.getCode())){
                return value;
            }
        }
        return null;
    }

}
